package com.ysstech.valuation.service;

import com.ysstech.common.entity.PageBean;
import com.ysstech.valuation.entity.BondInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 债券信息表 服务类
 * </p>
 *
 * @author lishuangliang
 * @since 2021-08-11
 */
public interface BondInfoService extends IService<BondInfo> {
    /**
     * 查询所有债券信息
     *
     * @param bondInfo
     * @param pageBean
     * @return
     * @throws Exception
     */
    public PageBean<BondInfo> queryAllBondInfo(BondInfo bondInfo, PageBean pageBean) throws Exception;


    /**
     * 票面利率（税前或者税后）/年计息天数（365或者366）*已计息天数*票面金额/100
     * 获取百元利息
     */
    public BondInfo getBillRates(BondInfo bondInfo, String fdate) throws Exception;

}
